<?php 
	session_start();
	include("ketnoi.php");
?>
<div class="main">

	<h5>HỎI ĐÁP<HR ></h5>

</div>
  <?php
  if($_REQUEST['stt'] !="")
		$stt = $_REQUEST['stt'];
		
	$query = "select * from `".$dulieu."`.`hoidap` where MaCH = '".$stt."'";	
	$kq = mysql_query($query);
	$row = mysql_fetch_array($kq);

  ?>
 <div class="news_content" style="padding-right:20px">
	<div class="news_header"><?php echo $row['TieuDe']?></div>  	 	 	 

	<table class="news_detail">
		<tbody><tr>
			<td style="padding-left:20px; font-weight:bold">
			  <?php echo $row['CauHoi']?>
            </td>
		</tr>
        <tr>
			<td style="padding-left:20px">
			  <?php echo $row['NoiDungTL']?>
            <br><br><br>
            </td>
		</tr>
        </tbody></table>
	<br>
	<table class="news_bottom" width="100%" align="left">
		<tbody><tr>
			<th width="100%" align="left">Câu hỏi khác</th>
		</tr>
		<?php

		$query_t = "select * from `".$dulieu."`.`hoidap` where NoiDungTL != '' order by MaCH desc";	
	    $kq_t = mysql_query($query_t);
		$n=1;
		while($row_t = mysql_fetch_array($kq_t)){
		if($row_t['MaCH'] != $stt && $n<7){	
		?>
		<tr>
			<td>»&nbsp;
			<a class="detail" href="hd01<?php echo $row_t['MaCH']?>.html" title="<?php echo $row_t['TieuDe'] ?>"><?php echo $row_t['TieuDe'] ?></a> ...</td>
			
		</tr>	
		<?php
			$n=$n+1;
		 } }

		 ?>
			</tbody></table>
<table width="100%" border="0">
  <tr>
    <td width="22%">&nbsp;</td>
    <td width="55%">&nbsp;</td>
    <td width="23%"><a href="hoidap-p1.html" style="font-style:italic; color:#06F; font-size:14px; text-decoration:none">xem tất cả</a></td>
  </tr>
</table>

</div>